<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:forgeview="http://jboss.org/forge/view"	
	template="/resources/templates/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{saleLoanContractDiscretionBean.id}"/>
		<f:event type="preRenderView" listener="#{saleLoanContractDiscretionBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="Create Sale Loan Contract Discretion"/>

	<ui:define name="header">
		Sale Loan Contract Discretion
	</ui:define>

	<ui:define name="subheader">
		<c:choose>
			<c:when test="#{!empty saleLoanContractDiscretionBean.id}">
				Edit existing Sale Loan Contract Discretion
			</c:when>
			<c:otherwise>
				Create a new Sale Loan Contract Discretion
			</c:otherwise>
		</c:choose>
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:form id="create">
			<h:messages globalOnly="true" styleClass="error"/>

			<h:panelGrid columnClasses="label,component,required" columns="3">
				<h:outputLabel for="saleLoanContractDiscretionBeanSaleLoanContractDiscretionSaleLoanContract" value="Sale Loan Contract:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{saleLoanContractBean.converter}" id="saleLoanContractDiscretionBeanSaleLoanContractDiscretionSaleLoanContract" value="#{saleLoanContractDiscretionBean.saleLoanContractDiscretion.saleLoanContract}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{saleLoanContractBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="saleLoanContractDiscretionBeanSaleLoanContractDiscretionSaleLoanContract" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanContractDiscretionBeanSaleLoanContractDiscretionDiscretionDate" value="Discretion Date:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanContractDiscretionBeanSaleLoanContractDiscretionDiscretionDate" maxLength="19" value="#{saleLoanContractDiscretionBean.saleLoanContractDiscretion.discretionDate}">
						<f:convertDateTime pattern="MMM d, yyyy hh:mm:ss a" type="both"/>
					</h:inputText>
					<h:message for="saleLoanContractDiscretionBeanSaleLoanContractDiscretionDiscretionDate" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanContractDiscretionBeanSaleLoanContractDiscretionLimitRateVal" value="Limit Rate Val:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanContractDiscretionBeanSaleLoanContractDiscretionLimitRateVal" value="#{saleLoanContractDiscretionBean.saleLoanContractDiscretion.limitRateVal}"/>
					<h:message for="saleLoanContractDiscretionBeanSaleLoanContractDiscretionLimitRateVal" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanContractDiscretionBeanSaleLoanContractDiscretionExceedRateVal" value="Exceed Rate Val:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanContractDiscretionBeanSaleLoanContractDiscretionExceedRateVal" value="#{saleLoanContractDiscretionBean.saleLoanContractDiscretion.exceedRateVal}"/>
					<h:message for="saleLoanContractDiscretionBeanSaleLoanContractDiscretionExceedRateVal" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanContractDiscretionBeanSaleLoanContractDiscretionDc01IsUsed" value="Dc 01Is Used:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanContractDiscretionBeanSaleLoanContractDiscretionDc01IsUsed" maxLength="1" value="#{saleLoanContractDiscretionBean.saleLoanContractDiscretion.dc01IsUsed}"/>
					<h:message for="saleLoanContractDiscretionBeanSaleLoanContractDiscretionDc01IsUsed" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanContractDiscretionBeanSaleLoanContractDiscretionDc01Val" value="Dc 01Val:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanContractDiscretionBeanSaleLoanContractDiscretionDc01Val" value="#{saleLoanContractDiscretionBean.saleLoanContractDiscretion.dc01Val}"/>
					<h:message for="saleLoanContractDiscretionBeanSaleLoanContractDiscretionDc01Val" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanContractDiscretionBeanSaleLoanContractDiscretionDc02IsUsed" value="Dc 02Is Used:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanContractDiscretionBeanSaleLoanContractDiscretionDc02IsUsed" maxLength="1" value="#{saleLoanContractDiscretionBean.saleLoanContractDiscretion.dc02IsUsed}"/>
					<h:message for="saleLoanContractDiscretionBeanSaleLoanContractDiscretionDc02IsUsed" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanContractDiscretionBeanSaleLoanContractDiscretionDc02Val" value="Dc 02Val:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanContractDiscretionBeanSaleLoanContractDiscretionDc02Val" maxLength="300" value="#{saleLoanContractDiscretionBean.saleLoanContractDiscretion.dc02Val}"/>
					<h:message for="saleLoanContractDiscretionBeanSaleLoanContractDiscretionDc02Val" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanContractDiscretionBeanSaleLoanContractDiscretionDc03IsUsed" value="Dc 03Is Used:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanContractDiscretionBeanSaleLoanContractDiscretionDc03IsUsed" maxLength="1" value="#{saleLoanContractDiscretionBean.saleLoanContractDiscretion.dc03IsUsed}"/>
					<h:message for="saleLoanContractDiscretionBeanSaleLoanContractDiscretionDc03IsUsed" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanContractDiscretionBeanSaleLoanContractDiscretionDc04IsUsed" value="Dc 04Is Used:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanContractDiscretionBeanSaleLoanContractDiscretionDc04IsUsed" maxLength="1" value="#{saleLoanContractDiscretionBean.saleLoanContractDiscretion.dc04IsUsed}"/>
					<h:message for="saleLoanContractDiscretionBeanSaleLoanContractDiscretionDc04IsUsed" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanContractDiscretionBeanSaleLoanContractDiscretionDc04Val" value="Dc 04Val:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanContractDiscretionBeanSaleLoanContractDiscretionDc04Val" value="#{saleLoanContractDiscretionBean.saleLoanContractDiscretion.dc04Val}"/>
					<h:message for="saleLoanContractDiscretionBeanSaleLoanContractDiscretionDc04Val" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanContractDiscretionBeanSaleLoanContractDiscretionDc05IsUsed" value="Dc 05Is Used:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanContractDiscretionBeanSaleLoanContractDiscretionDc05IsUsed" maxLength="1" value="#{saleLoanContractDiscretionBean.saleLoanContractDiscretion.dc05IsUsed}"/>
					<h:message for="saleLoanContractDiscretionBeanSaleLoanContractDiscretionDc05IsUsed" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanContractDiscretionBeanSaleLoanContractDiscretionDc06IsUsed" value="Dc 06Is Used:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanContractDiscretionBeanSaleLoanContractDiscretionDc06IsUsed" maxLength="1" value="#{saleLoanContractDiscretionBean.saleLoanContractDiscretion.dc06IsUsed}"/>
					<h:message for="saleLoanContractDiscretionBeanSaleLoanContractDiscretionDc06IsUsed" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanContractDiscretionBeanSaleLoanContractDiscretionDc07IsUsed" value="Dc 07Is Used:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanContractDiscretionBeanSaleLoanContractDiscretionDc07IsUsed" maxLength="1" value="#{saleLoanContractDiscretionBean.saleLoanContractDiscretion.dc07IsUsed}"/>
					<h:message for="saleLoanContractDiscretionBeanSaleLoanContractDiscretionDc07IsUsed" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanContractDiscretionBeanSaleLoanContractDiscretionDc07Val" value="Dc 07Val:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanContractDiscretionBeanSaleLoanContractDiscretionDc07Val" maxLength="300" value="#{saleLoanContractDiscretionBean.saleLoanContractDiscretion.dc07Val}"/>
					<h:message for="saleLoanContractDiscretionBeanSaleLoanContractDiscretionDc07Val" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanContractDiscretionBeanSaleLoanContractDiscretionDc08IsUsed" value="Dc 08Is Used:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanContractDiscretionBeanSaleLoanContractDiscretionDc08IsUsed" maxLength="1" value="#{saleLoanContractDiscretionBean.saleLoanContractDiscretion.dc08IsUsed}"/>
					<h:message for="saleLoanContractDiscretionBeanSaleLoanContractDiscretionDc08IsUsed" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanContractDiscretionBeanSaleLoanContractDiscretionDc09IsUsed" value="Dc 09Is Used:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanContractDiscretionBeanSaleLoanContractDiscretionDc09IsUsed" maxLength="1" value="#{saleLoanContractDiscretionBean.saleLoanContractDiscretion.dc09IsUsed}"/>
					<h:message for="saleLoanContractDiscretionBeanSaleLoanContractDiscretionDc09IsUsed" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanContractDiscretionBeanSaleLoanContractDiscretionDc09Val" value="Dc 09Val:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanContractDiscretionBeanSaleLoanContractDiscretionDc09Val" maxLength="300" value="#{saleLoanContractDiscretionBean.saleLoanContractDiscretion.dc09Val}"/>
					<h:message for="saleLoanContractDiscretionBeanSaleLoanContractDiscretionDc09Val" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanContractDiscretionBeanSaleLoanContractDiscretionDc10IsUsed" value="Dc 10Is Used:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanContractDiscretionBeanSaleLoanContractDiscretionDc10IsUsed" maxLength="1" value="#{saleLoanContractDiscretionBean.saleLoanContractDiscretion.dc10IsUsed}"/>
					<h:message for="saleLoanContractDiscretionBeanSaleLoanContractDiscretionDc10IsUsed" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanContractDiscretionBeanSaleLoanContractDiscretionDc10Val" value="Dc 10Val:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanContractDiscretionBeanSaleLoanContractDiscretionDc10Val" value="#{saleLoanContractDiscretionBean.saleLoanContractDiscretion.dc10Val}"/>
					<h:message for="saleLoanContractDiscretionBeanSaleLoanContractDiscretionDc10Val" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
			</h:panelGrid>

			<div class="buttons">
				<h:commandLink value="Save" action="#{saleLoanContractDiscretionBean.update}" styleClass="btn btn-primary"/>
				<c:choose>
					<c:when test="#{!empty saleLoanContractDiscretionBean.id}">
						<h:link value="Cancel" outcome="view" styleClass="btn btn-primary">
							<f:param name="id" value="#{saleLoanContractDiscretionBean.id}"/>
						</h:link>
						<h:commandLink value="Delete" action="#{saleLoanContractDiscretionBean.delete}" styleClass="btn btn-primary"/>
					</c:when>
					<c:otherwise>
						<h:link value="Cancel" outcome="search" styleClass="btn btn-primary"/>
					</c:otherwise>
				</c:choose>
			</div>
		</h:form>
	</ui:define>

</ui:composition>